package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;

/**
 * 任务单变更
 */
public class OrderChange  extends BasePojo {
    /**
     * 任务单变更id
     */
    private Integer orderChangeId;
    /**
     * 批号
     */
    private Integer batchId;
    /**
     * 任务单id
     */
    private Integer orderId;


    /**
     * 新的任务单id
     */
    private Integer newOrderId;



    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     * 修改日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;
    /**
     * 备注
     */
    private String remark;

    /**
     * 数据状态
     */
    private Integer dataState;

    /**
     * 以上为数据库定义字段,以下是衍生字段
     */
    /**
     * 旧的版本名称
     */
    private String matVerName;

    /**
     * 新的版本名称
     */
    private String newMatVerName;

    /**
     * 物料编码
     */
    private String matCode;
    /**
     * 物料名称
     */
    private String matName;
    /**
     * 新的物料编码
     */
    private String newMatCode;
    /**
     * 新的物料名称
     */
    private String newMatName;
    /**
     * 原车间名称
     */
    private String newWorkshopName;
    /**
     * 原产线名称
     */
    private String newProductlineName;
    /**
     * 原班次名称
     */
    private String classeName;
    /**
     * 新车间名称
     */
    private String workshopName;
    /**
     * 新产线名称
     */
    private String productlineName;

    /**
     * 新班次名称
     */
    private String newClasseName;
    /**
     * 原用户名称
     */
    private String userName;
    /**
     * 新用户名称
     */
    private String newUserName;
    /**
     * 任务单名称
     */
    private String orderNo;
    /**
     * 新任务单名称
     */
    private String newOrderNo;
    /**
     * 批号
     */
    private String batchCode;

    /**
     * 任务单的制单日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderCreateDate;

    public String getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    public Date getOrderCreateDate() {
        return orderCreateDate;
    }

    public void setOrderCreateDate(Date orderCreateDate) {
        this.orderCreateDate = orderCreateDate;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public String getNewOrderNo() {
        return newOrderNo;
    }

    public void setNewOrderNo(String newOrderNo) {
        this.newOrderNo = newOrderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getNewUserName() {
        return newUserName;
    }

    public void setNewUserName(String newUserName) {
        this.newUserName = newUserName;
    }

    public String getMatVerName() {
        return matVerName;
    }

    public void setMatVerName(String matVerName) {
        this.matVerName = matVerName;
    }

    public String getNewMatVerName() {
        return newMatVerName;
    }

    public void setNewMatVerName(String newMatVerName) {
        this.newMatVerName = newMatVerName;
    }

    public String getMatCode() {
        return matCode;
    }

    public void setMatCode(String matCode) {
        this.matCode = matCode;
    }

    public String getMatName() {
        return matName;
    }

    public void setMatName(String matName) {
        this.matName = matName;
    }

    public String getNewMatCode() {
        return newMatCode;
    }

    public void setNewMatCode(String newMatCode) {
        this.newMatCode = newMatCode;
    }

    public String getNewMatName() {
        return newMatName;
    }

    public void setNewMatName(String newMatName) {
        this.newMatName = newMatName;
    }

    public String getNewWorkshopName() {
        return newWorkshopName;
    }

    public void setNewWorkshopName(String newWorkshopName) {
        this.newWorkshopName = newWorkshopName;
    }

    public String getNewProductlineName() {
        return newProductlineName;
    }

    public void setNewProductlineName(String newProductlineName) {
        this.newProductlineName = newProductlineName;
    }



    public String getClasseName() {
        return classeName;
    }

    public void setClasseName(String classeName) {
        this.classeName = classeName;
    }

    public String getWorkshopName() {
        return workshopName;
    }

    public void setWorkshopName(String workshopName) {
        this.workshopName = workshopName;
    }

    public String getProductlineName() {
        return productlineName;
    }

    public void setProductlineName(String productlineName) {
        this.productlineName = productlineName;
    }



    public String getNewClasseName() {
        return newClasseName;
    }

    public void setNewClasseName(String newClasseName) {
        this.newClasseName = newClasseName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getOrderChangeId() {
        return orderChangeId;
    }

    public void setOrderChangeId(Integer orderChangeId) {
        this.orderChangeId = orderChangeId;
    }

    public Integer getBatchId() {
        return batchId;
    }

    public void setBatchId(Integer batchId) {
        this.batchId = batchId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }


    public Integer getNewOrderId() {
        return newOrderId;
    }

    public void setNewOrderId(Integer newOrderId) {
        this.newOrderId = newOrderId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }
}